package com.aspose.cells;

class zbxv extends zcdb {
   zbxv(ListObject var1) throws Exception {
      this.d = 343;
      int var2 = 88;
      byte[] var3 = new byte[]{-1, -1, -1, -1};
      String var4 = var1.f();
      if (var4 != null) {
         var2 += var4.length() * 2;
      }

      var4 = var1.getDisplayName();
      if (var4 != null) {
         var2 += var4.length() * 2;
      }

      var4 = var1.s();
      if (var4 != null) {
         var2 += var4.length() * 2;
      }

      this.c = new byte[var2];
      byte var5 = 0;
      zcch.a((CellArea)this.a(var1), this.c, 0);
      int var6 = zcee.C(var1.getDataSourceType());
      System.arraycopy(com.aspose.cells.b.a.zc.a(var6), 0, this.c, 16, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.a()), 0, this.c, 20, 4);
      int var7 = var1.y() == -1 ? 1 : var1.y();
      System.arraycopy(com.aspose.cells.b.a.zc.a(var7), 0, this.c, 24, 4);
      int var8;
      byte var9;
      if (!var1.j()) {
         var9 = (byte)(var5 | 0);
      } else {
         var9 = (byte)(var5 | 1);
         var8 = var1.A() > 1 ? var1.A() : 1;
         System.arraycopy(com.aspose.cells.b.a.zc.a(var8), 0, this.c, 28, 4);
      }

      if (var1.k()) {
         var9 = (byte)(var9 | 2);
      }

      if (var1.n()) {
         var9 = (byte)(var9 | 16);
      }

      if (var1.i()) {
         var9 = (byte)(var9 | 8);
      }

      this.c[32] = var9;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[0]), 0, this.c, 36, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[1]), 0, this.c, 40, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[2]), 0, this.c, 44, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[3]), 0, this.c, 48, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[4]), 0, this.c, 52, 4);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.h[5]), 0, this.c, 56, 4);
      if (var1.o() != -1) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.o()), 0, this.c, 60, 4);
      }

      byte var10 = 64;
      var4 = var1.f();
      if (var4 != null) {
         var8 = zcch.a(this.c, var10, var4);
      } else {
         System.arraycopy(var3, 0, this.c, var10, 4);
         var8 = var10 + 4;
      }

      var4 = var1.getDisplayName();
      if (var4 != null) {
         var8 = zcch.a(this.c, var8, var4);
      } else {
         System.arraycopy(var3, 0, this.c, var8, 4);
         var8 += 4;
      }

      var4 = var1.s();
      if (var4 != null) {
         var8 = zcch.a(this.c, var8, var4);
      } else {
         System.arraycopy(var3, 0, this.c, var8, 4);
         var8 += 4;
      }

      System.arraycopy(var3, 0, this.c, var8, 4);
      var8 += 4;
      System.arraycopy(var3, 0, this.c, var8, 4);
      var8 += 4;
      System.arraycopy(var3, 0, this.c, var8, 4);
      var8 += 4;
   }

   private CellArea a(ListObject var1) {
      CellArea var2 = new CellArea();
      var2.StartRow = var1.getStartRow();
      var2.StartColumn = var1.getStartColumn();
      var2.EndRow = var1.getEndRow();
      var2.EndColumn = var1.getEndColumn();
      return var2;
   }
}
